﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Model.MetadataTypes;
namespace Model.Entities
{
    /// <summary>
    /// 实体类 运行数据统计表, 此类请勿动，以方便表字段更改时重新生成覆盖
    /// </summary>
    [Serializable]
    [MetadataType(typeof(HRDS_RUNDATASTATISTICS_Metadata))]
    public partial class HRDS_RUNDATASTATISTICS
    {
        /// <summary>
        /// 创建<see cref="HRDS_RUNDATASTATISTICS"/>的实例
        /// </summary>
        public HRDS_RUNDATASTATISTICS()
        {
        }
        /// <summary>
        /// 主键
        /// </summary>
        public virtual string DATAID { get; set; }

        		
        /// <summary>
        /// 记录日期精确到小时
        /// </summary>
        public virtual DateTime RECORDTIME { get; set; }

    		
        /// <summary>
        /// cpu使用率小时平均值
        /// </summary>
        public virtual decimal CPUVALUE { get; set; }

    		
        /// <summary>
        /// 网络使用率小时平均值
        /// </summary>
        public virtual decimal NETFLOWTOTAL { get; set; }

    		
        /// <summary>
        /// 网络上传小时平均值
        /// </summary>
        public virtual decimal NETFLOWUPLOADING { get; set; }

    		
        /// <summary>
        /// 网络下载小时平均值
        /// </summary>
        public virtual decimal NETFLOWDOWNLOAD { get; set; }

    		
        /// <summary>
        /// 内存使用小时平均值
        /// </summary>
        public virtual decimal RAMVALUE { get; set; }

    		
        /// <summary>
        /// CPU温度小时平均值
        /// </summary>
        public virtual decimal? CPUTEMPERTURE { get; set; }

            /// <summary>
        /// 拓扑图基本信息表
        /// </summary>
        public virtual HRDS_NET_TOPOLOGY HRDS_NET_TOPOLOGY { get; set; }
		    		
        public override bool Equals(object obj)
        {
            HRDS_RUNDATASTATISTICS model = obj as HRDS_RUNDATASTATISTICS;
            return model != null && (ReferenceEquals(DATAID,null) ? ReferenceEquals(model.DATAID, null) : DATAID.Equals(model.DATAID));
        }
        public override int GetHashCode()
        {
            int hash = GetType().GetHashCode();
            hash = (hash * 397) ^ (ReferenceEquals(DATAID, null) ? 0 : DATAID.GetHashCode());
            return hash;
        }
    }
}
